package han.cirno.corrupt.util

import android.view.View
import han.cirno.corrupt.Application

object ViewUtil {
    fun getString(resId:Int,vararg paras: Any):String{
        return Application.application.getLocaleContext().getString(resId,*paras)
    }

    fun batchEnable(vararg views: View,supplier: () -> Boolean){
        views.forEach { it.isEnabled=supplier() }
    }
}